﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CodeCamp.Views.Volunteers
{
  public static class DateTimeFormatter
  {
    public static string ToShortTimeString( TimeSpan time )
    {
      // only interested in hours and minutes
      DateTime dateTime = new DateTime( 2010, 1, 1, time.Hours, time.Minutes, 0 );
      return dateTime.ToShortTimeString();
    }
  }
}